﻿@model PhotoBlogApp.Models.ClientModels.PostM
@{
    Layout = null;
    var anchor = string.Format("#post-{0}", @Model.PostId);
}
@if (User.Identity.IsAuthenticated && User.Identity.Name == "admin")
{
    <span class="text-info pull-right pointer">
        <a href="@Url.Action("Edit","Blog",new { id=@Model.PostId })">ред.</a>
    </span>
}
<div>
    <a class="blog-b__post__title" href="@anchor">@Model.Title</a>
</div>
<div class="text-muted">Автор текста: @Model.Author</div>
<br /><br />
<div class="blog-b__post__content">
    @Html.Raw(Model.HTML)
</div>


